import { Type } from "protobufjs";

//网络核心参数
export default class JNetParam{
    
    //请求处理 Id (用来找到处理方法)
    hId:number;

    //请求Id (请求标识)
    id:number;

    //请求参数
    data:any;
    byte:Uint8Array;

    constructor(id:number,hId:number){
        this.id = id;
        this.hId = hId;
    }

    static Build(id:number,hId:number):JNetParam{
        return new JNetParam(id,hId);
    }

    setData(data:any){
        this.data = data;
        return this;
    }
    setByte(byte:Uint8Array){
        this.byte = byte;
        return this;
    }

}


